• Perl Pocket Reference

    Updated: 2012-01-31 17:41:28
    If you have a Perl programming question, you'll find the answer quickly in this handy, easy-to-use quick reference. The Perl Pocket Reference condenses and organizes stacks of documentation down to the most essential facts, so you can find what you need in a heartbeat. Updated for Perl 5.14, the 5th edition provides a summary of Perl syntax rules and a complete list of operators, built-in functions, and other features.

  • Day 25 – Merry Christmas!

    Updated: 2011-12-25 10:52:41
    The kind elves who spend the rest of the year working in Santa’s shop to bring you more of Perl 6 each year would like to wish you a very warm and fuzzy Christmas vacation. December is always a special time for us, because we get to interact with you all through the interface of [...]

  • Day 24 — Subs are Always Better in multi-ples

    Updated: 2011-12-24 02:15:26
    Hey look, it’s Christmas Eve! (Also, the palindrome of 42!) And today, we’re going to learn about multi subs, which are essentially synonyms (like any natural language would have). Let’s get started! An Informative Introduction multi subs are simply subroutines (or anything related to it, such as methods, macros, etc.) that start with the multi [...]

  • Day 23 – Idiomatic Perl 6

    Updated: 2011-12-23 23:16:52
    Perl 6 Idioms, and Idiomatic Perl 6 (Butterflies of the world, alight!) Perl is a richly expressive language, with a warm and playful community. When someone crafts a succinct way to solve a common problem, the Perl community often adopts that solution's phrasing as a idiom. (Other-times, the community recoils in horror and proposes a [...]

  • Day 22 – Operator overloading, revisited

    Updated: 2011-12-22 20:58:11
    Today’s post is a follow-up. Exactly two years ago, Matthew Walton wrote on this blog about overloading operators: You can exercise further control over the operator’s parsing by adding traits to the definition, such as tighter, equiv and looser, which let you specify the operator’s precedence in relationship to operators which have already been defined. Unfortunately, at the time [...]

  • Native libraries, native objects

    Updated: 2011-12-21 21:42:29
    Last year flussence++ wrote a nice post about writing XMMS bindings for Perl 6 using the Native Call Interface. It has improved a bit since then, (at least NCI, I don’t know about XMMS), so let’s show it off a bit. To run the examples below you need a NativeCall module installed. Then add use NativeCall; at the [...]

  • Paired up Hashes

    Updated: 2011-12-20 14:31:49
    What is is possible with arrays and lists in Perl 6 is truly remarkable and was demonstrated here several times. But what about hashes? Superficially not much has changed. (Following Damian’s rule from PBP to name a hash variable in singular.) %song = Panacea => 'found a lover', Photek => 'ni ten ichi ryu'; say [...]

  • Day 19 – Abstraction and why it’s good

    Updated: 2011-12-19 21:30:09
    Some people are a bit afraid of the word “abstract”, because they’ve heard math teachers say it, and also, abstract art freaks them out. But abstraction is a fine and useful thing, and not so complicated. As programmers, we use it every day in different forms. The term is from Latin and means “to withdraw [...]

  • The view from the inside: using meta-programming to implement Rakudo

    Updated: 2011-12-18 22:49:25
    In my previous article for the Perl 6 advent calendar, I looked at how we can use the meta-programming facilities of Rakudo Perl 6 in order to build a range of tools, tweak the object system to our liking or even add major new features “from the outside”. While it’s nice that you can do [...]

  • Day 17: Gtk Mandelbrot

    Updated: 2011-12-17 20:26:00
    Two years ago today, the Advent post was on making Mandelbrot sets in Perl 6. At the time, they were in black and white, slow to produce, Rakudo was prone to crashing, and the only user interface thing you could control was how big the resulting PPM file was. As they say, that was then. [...]

  • Where Have All The References Gone?

    Updated: 2011-12-16 14:00:59
    Perl 5 programmers that start to learn Perl 6 often ask me how to take a reference to something, and my answers usually aren’t really helpful. In Perl 6, everything that can be held in a variable is an object, and objects are passed by reference everywhere (though you don’t always notice that, because objects [...]

Current Feed Items | Previous Months Items

Dec 2011